import Layout from '@/layout'
import Blank from '@/layout/blank'

export default [

  
    {
        path: '',
        hidden: true,
        component: Layout,
        name: 'Layout'
    },
    {
        path: '/organizationManage',
        meta: { title: '组织管理', icon: 'side_zuzhiguanli' },
        component: Layout,
        redirect: '/organizationManage/manage',
        name: 'organization',
        children: [{
            path: 'manage',
            meta: { title: '组织管理', icon: 'side_zuzhiguanli' },
            name: 'organizationManage',
            hidden: false,
            component: () => import("@/views/organization/OrganizationManage")
        }
        ]
    },
    {
        path: '/userManage',
        meta: { title: '用户管理', icon: 'side_yonghuguanli' },
        component: Layout,
        redirect: '/userManage/index',
        name: 'userManageIndex',
        children: [{
            path: 'index',
            meta: { title: '用户管理', icon: 'side_yonghuguanli' },
            name: 'userManage',
            component: () => import("@/views/user/UserManage")
        }
            ,{
                path: 'detail/:sn',
                meta: { title: '用户详情' },
                name: 'userDetail',
                component: () => import("@/views/user/UserDetail"),
                hidden: true
            }
        ]
    },
    {
        path: '/permissionManagement',
        name: 'permissionManagement',
        meta: { title: '权限管理', icon: 'side_quanxianguanli' },
        alwaysShow: true,
        component: Layout,
        redirect: '/permissionManagement/userAuth',
        children: [
            {
                path: '/permissionManagement/userAuth',
                meta: { title: '用户授权' },
                name: 'userAuth',
                component: () => import("@/views/permissionManage/userAuth")
            },
            {
                path: '/permissionManagement/roleManage',
                meta: { title: '角色管理' },
                component: () => import('@/views/permissionManage/roleManage/index'),
                name: 'roleManage',
            },
            {
                path: '/permissionManagement/roleManageAddApplications',
                meta: { title: '设置应用', activeMenu: '/permissionManagement/roleManage' },
                hidden: true,
                component: () => import('@/views/permissionManage/roleManage/components/addApplication.vue'),
                name: 'roleManageAddApplications',
            },
            {
                path: '/permissionManagement/applicationManage',
                meta: { title: '应用管理' },
                component: Blank,
                name: 'appManage',
                redirect: '/permissionManagement/applicationManage/index',
                children: [
                    {
                        path: '/permissionManagement/applicationManage/index',
                        meta: { title: '应用管理', breadcrumb: false },
                        component: () => import('@/views/permissionManage/appManage/index'),
                        name: 'applicationManage',

                    },
                    {
                        path: '/permissionManagement/applicationManage/applicationDetail',
                        name: 'applicationDetail',
                        meta: { title: 'query', activeMenu: '/permissionManagement/applicationManage/index' },
                        hidden: true,
                        component: () => import('@/views/permissionManage/appManage/components/applicationDetail.vue')
                    },

                ]

            },
            {
                path: '/permissionManagement/interfaceManage',
                name: 'interfaceManage',
                meta: { title: '接口管理' },
                component: () => import('@/views/permissionManage/interfaceManage')
            }

            // {
            //     path: '/permissionManagement/applicationManage',
            //     meta: { title: '应用管理' },
            //     component: () => import('@/views/permissionManage/appManage/index'),
            //     name: 'applicationManage',

            // },
            // {
            //     path: '/main/permissionManagement/applicationManage/applicationDetail',
            //     name: 'applicationDetail',
            //     meta: { title: 'query',activeMenu:'/permissionManagement/applicationManage' },
            //     hidden: true,
            //     component: () => import('@/views/permissionManage/appManage/components/applicationDetail.vue')
            //   },

        ]
    },
    {
        path: '/system',
        meta: { title: '基础配置', icon: 'side_jichupeizhi' },
        component: Layout,
        redirect: '/system/index',
        name: 'systemIndex',
        children: [{
            path: 'index',
            meta: { title: '基础配置', icon: 'side_jichupeizhi',/* breadcrumb: false */ },
            name: 'systemConfig',
            component: () => import("@/views/systemConfig/index")
        }]
    },
    {
        path: '/systemSet',
        meta: { title: '字典管理', icon: 'side_zidianguanli' },
        component: Layout,
        name: 'systemSet',
        alwaysShow: false,
        redirect: '/systemSet/index',
        children: [
            {
                path: 'index',
                meta: { title: '字典管理', icon: 'side_zidianguanli' },
                name: 'dictionaryManage',
                component: () => import("@/views/systemSet/dictionaryManage/index")
            }, {
                path: 'details',
                hidden: true,
                meta: { title: '字典数据', activeMenu: '/systemSet/index' },
                name: 'dictionaryDetails',
                component: () => import("@/views/systemSet/dictionaryManage/children/dictionaryData/index")
            }

        ],

    },

    { path: '*', redirect: '/error/404', hidden: true, name: '404' }
]
